<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>manage Excursions</title>
	<meta name="keywords" content="spectrum, free template, jquery, sliding pages, templatemo" />
	<meta name="description" content="Spectrum is free web template with gallery and sliding pages." />

	<link href="employeeHome.css" type="text/css" rel="stylesheet" /> 
	<script type="text/javascript" src="js/jquery.min.js"></script> 
	<script type="text/javascript" src="js/jquery.scrollTo-min.js"></script> 
	<script type="text/javascript" src="js/jquery.localscroll-min.js"></script> 
	<script type="text/javascript" src="js/init.js"></script> 
	<script type='text/javascript' src='js/logging.js'></script>
	<script type="text/JavaScript" src="js/slimbox2.js"></script> 
    
    <link rel="stylesheet" href="employee/slimbox2.css" type="text/css" media="screen" /> 
    

	
	<!-- Timestamp: 1236819900 --> 
	<title>manage Excursion</title>
</h:head>
<h:body>

<div id="templatemo_header">
    <div id="site_title">Excursion Home</div>
    <div class="clear"></div>
</div>
<div id="templatemo_wrapper">
<div id="templatemo_main">
    <div id="content"> 
		<div id="ehome">
        	<ul id="gallery">
                <li><a title="Gallery Image 1" href="images/gallery/01-l.jpg" rel="lightbox[gallery]">
                	<img src="images/gallery/01.jpg" alt="gallery image 1" /></a></li>
                <li><a title="Gallery Image 2" href="images/gallery/02-l.jpg" rel="lightbox[gallery]">
                	<img src="images/gallery/02.jpg" alt="gallery image 2" /></a></li>
                <li><a title="Gallery Image 3" href="images/gallery/03-l.jpg" rel="lightbox[gallery]">
                	<img src="images/gallery/03.jpg" alt="gallery image 3" /></a></li>
                <li><a title="Gallery Image 4" href="images/gallery/04-l.jpg" rel="lightbox[gallery]">
                	<img src="images/gallery/04.jpg" alt="gallery image 4" /></a></li>
                <li><a href="images/gallery/05-l.jpg" rel="lightbox[gallery]"><img src="images/gallery/05.jpg" alt="gallery image 5" /></a></li>
                <li><a href="images/gallery/06-l.jpg" rel="lightbox[gallery]"><img src="images/gallery/06.jpg" alt="gallery image 6" /></a></li>
                <li><a href="images/gallery/07-l.jpg" rel="lightbox[gallery]"><img src="images/gallery/07.jpg" alt="gallery image 7" /></a></li>
                <li><a href="images/gallery/08-l.jpg" rel="lightbox[gallery]"><img src="images/gallery/08.jpg" alt="gallery image 8" /></a></li>
                <li><a href="images/gallery/09-l.jpg" rel="lightbox[gallery]"><img src="images/gallery/09.jpg" alt="gallery image 9" /></a></li>
                
            </ul>   
        </div>
        <div id="about" class="section section_with_padding" > 
            <h1>Excursions</h1>
            <div>
		 	<h:form id="form" >
		 		<p:growl id="msgs" showDetail="true" />
			    <p:dataTable id= "excursions" var="excursion" value="#{listBean.getExcModel()}" scrollable="true" scrollHeight="300">
			        
			        <p:column headerText="ExcursionID">
			        	<h:outputText value="#{excursion.excursionID}"/>
			        </p:column>
			        
			        <p:column headerText="Name">  
			            <h:outputText value="#{excursion.name}" />  
			        </p:column>  
			  
			        <p:column headerText="Location">  
			            <h:outputText value="#{excursion.arrivalPlace}" />  
			        </p:column> 
			   </p:dataTable> 
			  </h:form>
			  
			  
			   </div> 
			<p:button outcome="maintainExcursion" value="edit Excursions" icon="ui-icon-wrench"/>
			  
            <a href="#ehome" class="home_btn">home</a> 
        </div> 
        
        <div class="section" id="contact"> 
            <h1>new Excursion</h1> 
                
                <div class = "form">
					<h:form>
						<p:panel header="Excursion Form">
							<h:panelGrid columns="3" id="regGrid">
								<h:outputLabel for="name">Excursion Name:</h:outputLabel>
								<p:inputText id="name" value="#{productBean.excursion.name}" />
								<p:message for="name" />
								
								<h:outputLabel for="arrivalPlace">Place of Location:</h:outputLabel>
								<p:inputText id="arrivalPlace" value="#{productBean.excursion.arrivalPlace}" />
								<p:message for="arrivalPlace" />
								
								<h:outputLabel for="meetingPlace">Meeting Place:</h:outputLabel>
								<p:inputText id="meetingPlace" value="#{productBean.excursion.meetingPlace}" />
								<p:message for="meetingPlace" />
								
								<h:outputLabel for="meetingTime">Meeting Time:</h:outputLabel>
								<p:inputText id="meetingTime" value="#{productBean.excursion.meetingTime}" />
								<p:message for="meetingTime" />
				
								<h:outputLabel for="cost">Cost (€):</h:outputLabel>
								<p:inputText id="cost" value="#{productBean.excursion.cost}" />
								<p:message for="cost" />
				
								
							</h:panelGrid>	
							<p:commandButton value="Save" update="regGrid"
								action="#{productBean.createExcursion()}" />
				
						</p:panel>
					</h:form>
				</div>
				            
            <a href="#ehome" class="home_btn">home</a> 
        </div> 
    </div> 
</div>

<div id="templatemo_sidebar">

	
	<div class="sidebar_box"><a href="#about">
    	<span class="testimonial"></span>
    	<span class="menu_title">Excursions</span>
        <span class="menu_desc">Overviewlist of excursions and the possibility to edit the excursions.</span>
        </a>
    </div>
    <div class="sidebar_box"><a href="#contact">
	    <span class="services"></span>
    	<span class="menu_title">Create Excursion</span>
        <span class="menu_desc">Here you can find the form to be filled out for adding a new excursion.</span>
        </a>
    </div>
    
    <ul id="social_buttons">
        <li><a href="../logoutRedirect.xhtml" class="logout"></a></li>
        <li><p:button outcome="employeeHome" value="back" icon="ui-icon-arrowreturnthick-1-w"/></li>
        <!--  <li><a href="#" class="flickr"></a></li>
        <li><a href="../logoutRedirect.xhtml" class="logout"></a></li>
        <li><a href="#" class="twitter"></a></li>
        <li><a href="#" class="youtube"></a></li>
        <li><a href="#" class="vimeo"></a></li>   -->                     
    </ul>
    
</div>
<div class="clear"></div>
</div>


</h:body>
 
</html>
